<!DOCTYPE html>
<html>

<head>
  {% block head %}
  <meta charset="utf-8">
  <title>{% block title %}Template - HelloFlask{% endblock %}</title>
  <link rel="icon" type="image/x-icon" href="{{ url_for('static', filename='favicon.ico') }}">
  {% block styles %}
  <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='style.css' ) }}">
  {% endblock %}
  {% endblock %}
</head>

<body>
  <nav>
    {% block nav %}
    <ul>
      <li><a href="{{ url_for('index') }}">Home</a></li>
      <li><a href="{{ url_for('index4') }}">ch4</a></li>
    </ul>
    {% endblock %}
  </nav>

  <main>
    {% for message in get_flashed_messages() %}
    <div class="alert">{{ message }}</div>
    {% endfor %}
    {% block content %}{% endblock %}
  </main>
  <footer>
    {% block footer %}
    <small> &copy; 2024 <a href="https://greyli.com">Grey Li</a> /
      <a href="https://github.com/greyli/helloflask">GitHub</a> /
      <a href="https://helloflask.com">HelloFlask</a>
    </small>
    {% endblock %}
  </footer>
  {% block scripts %}{% endblock %}
</body>

</html>
